#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
void* my_memcpy(void* dest, const void* source, size_t count)
{
	assert(source && dest);
	char* ret = (char*)dest;
	while (count--)
	{
		*(char*)dest = *(char*)source;
		source=(char*)source+1;
		dest=(char*)dest+1;
	}
	return ret;
}
int main()
{
	int a1[20] = { 1,2,3,4,5,6,7,8 };
	int a2[5] = {0};
	my_memcpy(a1, a2, 20);
	printf("%d", a1[1]);
}